package com.benshou.bsoa.sao;

import com.benshou.bsoa.dto.renshi.req.EmployeeDataRequest;
import com.benshou.bsoa.dto.renshi.res.EmployeeDataResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(name = "employeeDataClient", url = "${benshou.xinchou.requesturl}")
public interface EmployeeDataClientSao {

    /**
     * 查询员工信息
     *
     * @param request 请求参数
     * @return 响应对象，包含员工信息
     */
    @PostMapping(consumes = "application/json", produces = "application/json")
    EmployeeDataResponse getEmployeeData(@RequestBody EmployeeDataRequest request,
                                         @RequestHeader("x-acs-dingtalk-access-token") String authorizationHeader);
}